<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">

	<div id="fb-root"></div>
	<script>
  		window.fbAsyncInit = function() {
    		FB.init({
      			appId      : '241345409276553', // App ID
      			channelUrl : '//4.stewiemaze.appspot.com/channel.html',
      			status     : true, // check login status
      			cookie     : true, // enable cookies to allow the server to access the session
      			xfbml      : true  // parse XFBML
    		});

    		FB.getLoginStatus(function(response) {
    			  if (response.status === 'connected') {
    				  document.cookie = "accesToken=" + response.authResponse.accessToken;
    			    var uid = response.authResponse.userID;
    			  } else if (response.status === 'not_authorized') {
    			  } else {
    			  }
    			 });
  		};

  		// Load the SDK Asynchronously
  		(function(d, s, id) {
  			var js, fjs = d.getElementsByTagName(s)[0];
  			if (d.getElementById(id)) return;
  			js = d.createElement(s); js.id = id;
  			js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=241345409276553";
  			fjs.parentNode.insertBefore(js, fjs);
   		} (document, 'script', 'facebook-jssdk'));
	</script>

<script type="text/javascript">
	function delayer(){
    	window.location = "http://stewiemaze.appspot.com";
	}
</script>
</head>

<body onLoad="setTimeout('delayer()', 5000)">
You logged in succesfully and will be redirected to the app in just a sec..
</body>
</html>